package com.etc.RCCPU001.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.etc.RCCPU001.dao.UserinfoMapper;
import com.etc.RCCPU001.pojo.Userinfo;
import com.etc.RCCPU001.service.UserinfoService;

@Service
public class UserinfoServiceImpl implements UserinfoService{
	
	@Autowired
	UserinfoMapper dao;

	@Override
	public Userinfo login(String name, String pwd) {	
		return dao.selectUserByNameAndPwd(name,pwd);
	}

	@Override
	public int register(Userinfo user) {
		
		return dao.register(user);
	}

	@Override
	public List<Map> getBanner(Integer modid) {
		return dao.getBanner(modid);
	}

}
